package com.mygs.trackppt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.awt.*;
import java.util.List;

/**
 * @author Baymax
 * @version 初次构建
 */
@Data
@AllArgsConstructor
public class OOCChartData {
    private String title;

    private List<OOCData> oocDataList;

    @Data
    @AllArgsConstructor
    public static class OOCData {
        private Dimension dimension;

        private int value;

        private int oocCount;

        private double ratio;

        public String getDimensionValue() {
            return dimension.name().charAt(0) + String.format("%02d", value);
        }
    }

    public enum Dimension {
        /**
         * 统计维度
         */
        WEEKLY,
        MONTHLY,
    }
}
